package com.example.controller;

import com.alibaba.fastjson.JSONObject;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author X.I.O
 * @title: TestController
 * @projectName springboot-jpa
 * @description: TODO
 * @date 2021/11/15 11:38
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @GetMapping("/test")
    public JSONObject testController(){
        JSONObject jsonObject=new JSONObject();
        jsonObject.put("code","1");
        return jsonObject;
    }
}
